namespace QLGT_2.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class tbl_Quyen
    {
        public tbl_Quyen()
        {
            tbl_ChucNang_Quyens = new HashSet<tbl_ChucNang_Quyen>();
            tbl_NguoiDungs = new HashSet<tbl_NguoiDung>();
        }

        [Key]
        public int MaQuyen { get; set; }

        [Required]
        [StringLength(50)]
        public string Quyen { get; set; }

        [Required]
        [StringLength(50)]
        public string MoTa { get; set; }

        public virtual ICollection<tbl_ChucNang_Quyen> tbl_ChucNang_Quyens { get; set; }

        public virtual ICollection<tbl_NguoiDung> tbl_NguoiDungs { get; set; }
    }
}
